package com.ty.day3;

import java.util.Scanner;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : txy
 * @create 2023/11/8 16:14
 */
public class Four {
    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        System.out.println("输入年龄：");
//        int x = sc.nextInt();
//        if (x >= 18 && x <= 30) {
//            System.out.println("满足");
//        }
//        int a = 6, b = 9, c = 5;
//        int max = a > b ? (a > c ? a : c ): (b > c ? b : c);
//        System.out.println(max);
        int year = 2023;
        if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
            System.out.println(year + "是闰年");
        } else {
            System.out.println(year + "不是闰年");
        }
        System.out.println((year % 4 == 0 && year % 100 != 0)?year + "是闰年":year % 400 == 0?year + "是闰年":year + "不是闰年");
    }
}
